package org.redrock.test.bean;

import lombok.Data;
import java.util.Map;

@Data
public class RequestInfo {
    private String method;

    private String url;

    private Map<String, String> headers;

    private Map<String, String> params;

    private String raw;

    private String mediaType;

    public RequestInfo(String method, String url) {
        this.method = method;
        this.url = url;
    }
    public RequestInfo(String method, Map<String, String> headers, String url) {
        this.method = method;
        this.headers = headers;
        this.url = url;
    }
    public RequestInfo(String method, String url, Map<String, String> params) {
        this.method = method;
        this.url = url;
        this.params = params;
    }

    public RequestInfo(String method, String url, String raw) {
        this.method = method;
        this.url = url;
        this.raw = raw;
    }

    public RequestInfo(String method, String url, Map<String, String> headers, Map<String, String> params, String raw, String mediaType) {
        this.method = method;
        this.url = url;
        this.headers = headers;
        this.params = params;
        this.raw = raw;
        this.mediaType = mediaType;
    }
}
